package com.kingyun.gpsinspection.purificationservice.facade.service.jsm.datareport;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Employee;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.RepTemplate;

import java.util.List;

/**
 * Created by huangxueqian on 2017/2/14/014.
 * 报表模板管理服务
 */
public interface JsmRepTemplateService {

    /**
     * @param  repTemplate
     * @return 查询当前模板列表
     * @throws Exception
     */
    JSONObject table(RepTemplate repTemplate) throws  Exception;

    /**
     * 模板新增
     * @param repTemplate
     * @return
     * @throws Exception
     */
    Integer add(RepTemplate repTemplate, Employee employee) throws Exception;

    /**
     * 模板删除 , 根据模板Id删除模板
     * @param reportIdList
     * @return
     * @throws Exception
     */
    Integer del(List<String> reportIdList) throws Exception;

    /**
     * 根据ID查询模板
     * @return
     * @throws Exception
     */
    RepTemplate queryRemplatePrimaryKey(String repTemplate) throws  Exception;

    /**
     * 模板查询
     * @param repTemplate
     * @return
     * @throws Exception
     */
    RepTemplate queryRemplate(RepTemplate repTemplate) throws  Exception;

}
